﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;

namespace MindFuck
{
    class ImageToByte
    {

        public ImageToByte()
        {
            imageConverter();
        }

        public void imageConverter()
        {
            //byte[] image;

            //byte[] arrBytes; //= File.ReadAllBytes(@"C:\imagem_teste.jpg");
            //string strXml = string.Empty; //= Convert.ToBase64String(arrBytes);
            //File.WriteAllText(@"teste_xml.txt", strXml);

            //string strFile = File.ReadAllText(@"teste_xml.txt");
            //byte[] arrBytes_2 = Convert.FromBase64String(strFile);

            //MemoryStream stream = new MemoryStream();
            //stream.Write(arrBytes, 0, arrBytes.Length);
            //form1.pb.Image = Image.FromStream(stream);
            //stream.Close();
        }

        /*void imageToByte()
        {
            Stream imagemStream = new MemoryStream();
            Image image_byte = Image.FromStream(imagemStream);
            pb.Image = image_byte;
            Console.WriteLine(image_byte + "image_byte");
        }*/
    }
}
